package com.atguigu.springcloud.service;

import com.atguigu.springcloud.dao.UserDao;
import com.atguigu.springcloud.entities.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;
    public User select(Long id) {
        return userDao.select(id);
    }

    public int insert(User user) {
        return userDao.insert(user);
    }
}
